<template>
    <div class="my-container">    

           <div calss="my-title">生产过程</div>
           <wv-group title="默认">
                <wv-input label="账号：" placeholder="请输入账号" v-model="u_id"></wv-input>
                <wv-input label="密码：" placeholder="请输入密码" v-model="u_pwd" ></wv-input>
                <wv-button type="primary" @click="login">登录</wv-button>
            </wv-group>
            <div>本系统由frozen公司开发</div>
    </div>
</template>

<script>
export default {
    
    name:'SaftyLogin',

    data(){
        return {

        };
    },
    methods:{
        login(){
            if(!this.u_id||this.u_id==''){
                this.$dialog.alert({
                title: '提示',
                message: '请输入账号!'
                });
                return;
            }
             if(!this.u_pwd||this.u_pwd==''){
                this.$dialog.alert({
                title: '提示',
                message: '请输入密码!'
                });
                return ;
            }

            this.$router.push('/safty/home');
        }


    }
}
</script>

<style scoped>

    .my-container{
        /* 宽高 包含在尺寸内 */
        box-sizing: border-box;
        background: rgb(153, 153, 153);
        padding:0.03rem;
    };
    .my-title{



    }

</style>
